package es.abredatos.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import es.abredatos.shared.Book;
import es.abredatos.shared.Library;

@RemoteServiceRelativePath("dispatcher")
public interface BooksLocatorService extends RemoteService {

	List<Book> searchBook(String query, String type, boolean borrowed, double latitude, double longitude) throws IllegalArgumentException;

	List<Library> locateLibrary(Book book) throws IllegalArgumentException;

	Book getBookDetails(String id) throws IllegalArgumentException;

}
